<?php
/**
 * 主页
 */
namespace  app\index\controller;


use think\Db;
use think\Request;

class VideoController extends BaseController{

    private $foot;
    public function _initialize(){
        $this->foot=$this->foot();
    }
    //列表
    public function index(){
        $data = Db::table("video")
            ->where('delete_time',null)
            ->where('status',1)
            ->order('orders desc')
            ->limit(2)
            ->select();
        $this->assign([
            'data' => $data,
            'foot'=>$this->foot
        ]);
        return $this->fetch('video/index');
    }

}
